package com.example.demoviewthymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class UrlController {
    /**
     * view:视图
     * Thymeleaf
     * ${...} : 变量表达式.
     *
     * *{...} :选择表达式.
     *
     * #{...} : 消息表达式
     *
     * @{...} : 链接表达式.
     *
     * ~{...} : 分段表达式.
     * @param model
     * @return
     */
    @GetMapping("index")
    public String index(Model model){
        model.addAttribute("name","dong dong");
        return "index";

    }
}
